import { defineStore } from 'pinia'

export const useTagStore = defineStore('tag', {
  state() {
    return {
      tagDict: {},
    }
  },
  actions: {
    getTagById(tagId) {
      return this.tagDict[tagId]
    },
    setTag(tagDict) {
      this.tagDict = tagDict
    },
  },
})
